# -*- coding = utf-8 -*-
# @Time : 2021/2/15 23:14
# @Author : yzh
# @File : urls.py
# @Software : PyCharm

from django.urls import path
from DjangoWeb import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
    path('', views.index),
    path('login/', views.login,name='login'),
    path('query/', views.query),
    path('user/', views.user,name='user'),
    path('grade/', views.grade,name='grade'),
    path('XxqgSearch/', views.XxqgSearch, name='XxqgSearch'),
    path('XxqgResult/', views.XxqgResult, name='XxqgResult'),
]
if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)